Skip to content

v2 refactor: @devrev/airsync-sdk (rename, state/adapter split, emit-from-return) - #208

Draft
radovanjorgic wants to merge 5 commits into
mainfrom
v2
Draft

v2 refactor: @devrev/airsync-sdk (rename, state/adapter split, emit-from-return)#208
radovanjorgic wants to merge 5 commits into
mainfrom
v2

Conversation

@radovanjorgic

@radovanjorgic radovanjorgic commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR is the v2 rebuild of the SDK, delivered as three single-purpose commits
(refactor / test / docs) for commit-by-commit review. Breaking changes are intended.

  • Rename & branding@devrev/ts-adaas@devrev/airsync-sdk (2.x);
    AirdropEvent/AirdropMessageAirSyncEvent/AirSyncMessage (hard rename).
  • Adapter & state splitWorkerAdapterExtractionAdapter + LoadingAdapter;
    StateExtractionState + LoadingState; on-disk state is now a
    { connectorState, sdkState } envelope with a v1→v2 read-time migration.
  • emit-from-returnemit() is now SDK-internal; task/onTimeout return a
    TaskResult (success / progress / delay / error) and the SDK emits once.
  • Cleanup — removed the deprecated event-type translation layer, dead
    migrateProcessedAttachments/createAdapterState shims, and src/deprecated/**.
  • Migration guide & skill — added MIGRATION.md (complete v1→v2 spec, shipped in the
    npm tarball) and the migrate-v2 skill that executes it.

Connected Issues

Checklist

  • Tests added/updated and ran with npm run test OR no tests needed.
  • Ran backwards compatibility tests with npm run test:backwards-compatibility.
  • Code formatted and checked with npm run lint.
  • Tested airdrop-template linked to this PR.
  • Documentation updated and provided a link to PR / new docs OR no docs needed.

@radovanjorgic
radovanjorgic force-pushed the v2 branch 7 times, most recently from c54bff0 to 0db6d50 Compare July 29, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant